package com.chen.bean.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chen.bean.BaseEntity;
import lombok.Data;

@TableName("talker_message")
@Data
public class MessageEntity extends BaseEntity {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    //对话编号
    private String dialogNumber;

    //对话id
    private Integer dialogId;

    //输入语句长度
    private Integer inputTokens;

    //输出语句长度
    private Integer outputTokens;

    //输入+输出总长度
    private Integer totalTokens;

    //消息角色:system-系统 user-用户 assistant-系统回复 tool-工具回复
    private String role;

    //消息内容
    private String content;
}
